#include <fstream>
#include <iostream>
#include <SFML/Graphics.hpp>
#include "screens.hpp"

int main(int argc, char** argv)
{
    //Applications variables
    std::vector<cScreen*> Screens;
    int screen = 0;

    //Window creation
    sf::RenderWindow App(sf::VideoMode(640, 480, 32), "solgame");

    //Mouse cursor no more visible
    App.setMouseCursorVisible(false);

    //Screens preparations
    Menu mainMenu;
    Screens.push_back (&mainMenu);
    Play playScreen;
    Screens.push_back (&playScreen);

    //Main loop
    while (screen >= 0)
    {
        screen = Screens[screen]->Run(App);
    }

    return EXIT_SUCCESS;
}
